home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_504_EachMenuItem < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.2 KB  |  66 lines

  1. %case defineItem%
  2.     %if commandNr > 1023%
  3.         #define cmd%MenuItemName%%    %%commandNr% 
  4.     %endif%
  5. %case includeAppDialog%
  6.     %if commandNr > 1023%
  7.         %if dialogExists%
  8.             %if modeless%
  9.                 #include "%dlogname%.h"
  10.             %endif%
  11.         %endif%
  12.     %endif%
  13. %case includeDocDialog%
  14.     %if commandNr > 1023%
  15.         %if dialogExists%
  16.             %if modal%
  17.             %or modalOneShot%
  18.                 #include "%dlogname%.h"
  19.             %endif%
  20.         %endif%
  21.     %endif%
  22. %case updateAppMenu%
  23.     %if commandNr > 1023%
  24.         %if dialogExists%
  25.             %if modeless%
  26.                 gBartender->EnableCmd (cmd%MenuItemName%);
  27.             %endif%
  28.         %endif%
  29.     %endif%
  30. %case updateDocMenu%
  31.     %if commandNr > 1023%
  32.         %if dialogExists%
  33.             %if modal%
  34.             %or modalOneShot%
  35.                 gBartender->EnableCmd (cmd%MenuItemName%);
  36.             %endif%
  37.         %else%
  38.             gBartender->EnableCmd (cmd%MenuItemName%);
  39.         %endif%
  40.     %endif%
  41. %case handleAppItem%
  42.     %if commandNr > 1023%
  43.         %if dialogExists%
  44.             %if modeless%
  45.                 case cmd%MenuItemName%:
  46.                         its%dlogname%->GetWindow ()->Select ();
  47.                     break;
  48.             %endif%
  49.         %endif%
  50.     %endif%
  51. %case handleDocItem%
  52.     %if commandNr > 1023%
  53.         %if dialogExists%
  54.             %if modal%
  55.             %or modalOneShot%
  56.                 case cmd%MenuItemName%:
  57.                         Do%dlogname% (this);
  58.                     break;
  59.             %endif%
  60.         %else%
  61.             case cmd%MenuItemName%:
  62.                     /* handle %MenuItemName% choice; */
  63.                 break;
  64.         %endif%
  65.     %endif%
  66.